<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.io.File"%>


<%@page import="ru.magicreader.FeedServlet"%><html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>MagicReader</title>

	<script type="text/javascript" src="swfobject.js"></script>
</head>

<jsp:useBean id="bean" class="ru.magicreader.FormMain" scope="session"/>

<body>
	<!-- See if we are logged in -->
	<%if(request.getSession().getAttribute(FeedServlet.USER_SESSION_ATTRIBUTE) == null) {%>
		<jsp:forward page="login.jsp"></jsp:forward>
	<%} %>

	<form id="formMain" action="request.jsp">
		Feed URL: <input name="feedUrl" style="width: 375px"> <input type="submit">
	</form>
	
	<table width="600" border="0" cellpadding="0">
	  <tr>
	    <td>	
			<div id="flashcontent">You Must Enable Flash and Javascript In Order To Use This Service</div>
			<script type="text/javascript">
				var so = new SWFObject("tagcloud.swf", "tagcloud", "1000", "400", "7");
				so.addParam("wmode", "transparent");
				so.addVariable("tcolor", "0x333333");
				so.addVariable("tcolor2", "0x009900");
				so.addVariable("hicolor", "0x000000");
				so.addVariable("tspeed", "100");
				so.addVariable("distr", "true");
				so.addVariable("xmlpath", "input.jsp");
				so.write("flashcontent");
			</script>
		</td>
	  </tr>
	</table>
</body>
</html>